package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._19命令模式._1基本代码;

class Invoker{

    private Command command;

    public void setCommand(Command command){
        this.command = command;
    }

    public void executeCommand(){
        command.excuteCommand();
    }

}